home *** CD-ROM | disk | FTP | other *** search
/ Freelog 125 / Freelog_MarsAvril2015_No125.iso / Musique / Quod Libet / quodlibet-3.3.0-installer.exe / bin / gi / overrides / Pango.pyc (.txt) < prev   
Python Compiled Bytecode  |  2014-12-31  |  1KB  |  36 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.7)
  3.  
  4. from overrides import override
  5. from module import get_introspection_module
  6. Pango = get_introspection_module('Pango')
  7. __all__ = []
  8.  
  9. class FontDescription(Pango.FontDescription):
  10.     
  11.     def __new__(cls, string = None):
  12.         if string is not None:
  13.             return Pango.font_description_from_string(string)
  14.         return None.FontDescription.__new__(cls)
  15.  
  16.     
  17.     def __init__(self, *args, **kwargs):
  18.         return super(FontDescription, self).__init__()
  19.  
  20.  
  21. FontDescription = override(FontDescription)
  22. __all__.append('FontDescription')
  23.  
  24. class Layout(Pango.Layout):
  25.     
  26.     def __new__(cls, context):
  27.         return Pango.Layout.new(context)
  28.  
  29.     
  30.     def set_markup(self, text, length = -1):
  31.         super(Layout, self).set_markup(text, length)
  32.  
  33.  
  34. Layout = override(Layout)
  35. __all__.append('Layout')
  36.